import java.util.*;
import java.util.regex.*;
import java.text.*;
import java.math.*;
import java.awt.geom.*;

public class RowAndManyCoins {
	public String getWinner(String cells) {
		if (cells.startsWith("A") || cells.endsWith("A"))
			return "Alice";
		return "Bob";
	}

	// <%:testing-code%>
}
// Powered by [KawigiEdit] 2.0!